package com.lhkj.ct.meta.modules.scheduling.common.enums;

import com.baomidou.mybatisplus.annotation.EnumValue;
import com.lhkj.ct.base.enums.IBaseEnum;

/**
 * <p>
 *      预约状态
 * </p>
 *
 * @author job
 * @since 2023/10/29
 */
public enum AppointStatus implements IBaseEnum<Integer, String> {


    UNSIGNED(0,"待签到"),
    SIGNED(1,"已签到"),
    DONE(2,"已完成"),
    CANCEL(3,"取消")
    ;

    @EnumValue
    private final int code;

    private final String desc;

    AppointStatus(int code, String desc) {
        this.code = code;
        this.desc = desc;
    }

    @Override
    public Integer getValue() {
        return code;
    }


    @Override
    public String getLabel() {
        return desc;
    }
}
